package com.lbx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 吕兵星
 * @date 2020/10/30 21:35
 */
@Controller
public class RouterController {
    @GetMapping("/")
    public String toIndex(){
        return "index";
    }
    @GetMapping("/{dir}/{page}")
    public String toIndex(@PathVariable("dir")int dir,@PathVariable("page")int page){
        return "views/level"+dir+"/level"+page;
    }
}
